package com.example.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//@Component
public class userConfig1 implements InitializingBean {

    @Value("${User.name}")
     String name;

    @Value("${User.age}")
     Integer age;


    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println(name + age );
    }
}
